package cn.iocoder.yudao.module.enterprise.convert.report;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.enterprise.controller.admin.report.vo.ReportReductionCreateReqVO;
import cn.iocoder.yudao.module.enterprise.controller.admin.report.vo.ReportReductionRespVO;
import cn.iocoder.yudao.module.enterprise.dal.dataobject.report.ReportReductionDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 核算报告和减排信息关联 Convert
 *
 * @author StevenShen
 */
@Mapper
public interface ReportReductionConvert {

    ReportReductionConvert INSTANCE = Mappers.getMapper(ReportReductionConvert.class);

    ReportReductionDO convert(ReportReductionCreateReqVO bean);

    ReportReductionRespVO convert(ReportReductionDO bean);

    List<ReportReductionRespVO> convertList(List<ReportReductionDO> list);

    PageResult<ReportReductionRespVO> convertPage(PageResult<ReportReductionDO> page);

}
